//
//  LSZThumbUpOrBlessingListForResourcesManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/12/23.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZThumbUpOrBlessingListForResourcesManager.h"

@implementation LSZThumbUpOrBlessingListForResourcesManager
-(id)initWithThumbUpOrBlessingListForResources:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.mutMgArray  = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * arrayMg = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in arrayData) {
            LSZThumbUpOrBlessingListForResourcesMg * manager = [[LSZThumbUpOrBlessingListForResourcesMg alloc]init];
            manager.praiser = NullStringjudgment(NSStr(diction[@"praiser"]));
            NSString * timeString = [LSZSpecialPackaging GetThePreviousTime1970:NullStringjudgment(NSStr(diction[@"praiserTime"]))];
            manager.praiserTime = [LSZSpecialPackaging GetThePreviousTimeAndCompareItNow:timeString];
            manager.praiserHead = NullStringjudgment(NSStr(diction[@"praiserHead"]));
            manager.praiserId   = NullStringjudgment(NSStr(diction[@"praiserId"]));
            [arrayMg addObject:manager];
        }
        self.mutMgArray = arrayMg;
    }
    return self;
}
@end
@implementation  LSZThumbUpOrBlessingListForResourcesMg

@end
